require 'rubygems'
gem 'soap4r'
require 'soap/wsdlDriver'
require 'soap/header/simplehandler'
require 'defaultDriver.rb'
require 'authStub.rb'

#Async create options
#options = CreateOptions.new(nil,nil,nil,nil,nil,nil,nil,nil,'Asynchronous')
options = nil

attributes = Array.new
date = Date.today.strftime("%m/%d/%Y")
5.times do |i|
customerKey = 'APIAttribute' + i.to_s
desc = customerKey + 'Created Through the API'
attributes.push(PropertyDefinition.new(nil,nil,nil,nil,nil,nil,nil,customerKey,nil,nil,customerKey,nil,nil,'string',1,1,1,1,1,0,nil,nil,nil,nil,nil,nil,desc,desc,date,1,200,nil,nil,1,1,1,nil,0,nil,0,nil,nil,nil,nil,nil))
end
apiObj = attributes

resp = $driver.configure(ConfigureRequestMsg.new(options,'create',[*apiObj]))